home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TPWENG
/
TBLOPEN.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
446b
|
25 lines
program TblOpen;
uses PXEngine, WinCrt;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
(* Open a table *)
PxErr := PXTblOpen(TableName, TblHandle, 0, False);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr))
else PX(PXTblClose(TblHandle));
PX(PXExit);
end.